//
//  UILabel+RL.swift
//  RaveLand
//
//  Created by MasterKevin on 2021/4/7.
//  Copyright © 2021 CSLY. All rights reserved.
//

import UIKit

extension UILabel {
    public convenience init(
        font: UIFont!,
        text: String? = nil,
        textColor: UIColor? = .black,
        numberOfLines: Int = 0,
        textAlignment: NSTextAlignment = .left
    ) {
        self.init()
        self.text = text
        self.font = font
        self.textColor = textColor
        self.numberOfLines = numberOfLines
        self.textAlignment = textAlignment
        self.sizeToFit()
    }
}
